SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 11027: Extraneous CSS information is added to the HTML file creating style sheets with PROC PRINT

DetailsAboutRate It
Creating HTML output using PROC PRINT, the HTMLCLASS= attribute,
and the STYLESHEET option to create an internal or external style
sheet generates extra CSS code in the HTML file.

The formatting is handled in the CSS file.  However, extraneous CSS style
sheet properties are added to the file overriding the style sheet.

This problem is specific to PROC PRINT and can be replicated using the
code below.

   ods html file="temp.html" stylesheet
       headtext="<style> .test {width:50}</style>";

   proc print data=sashelp.class;
      var age / style={htmlclass="test"};
   run;

   ods html close;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows 95/988.2 TS2M0
Microsoft Windows NT Workstation8.2 TS2M0
Microsoft Windows XP Professional8.2 TS2M09.3 TS1M0
Windows Millennium Edition (Me)8.2 TS2M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9 TS M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition8.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition8.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition8.2 TS2M09.3 TS1M0
Microsoft Windows 2000 Professional8.2 TS2M0
Microsoft Windows 2000 Server8.2 TS2M0
Microsoft Windows 2000 Advanced Server8.2 TS2M0
Microsoft Windows 2000 Datacenter Server8.2 TS2M0
Solaris8.2 TS2M09.3 TS1M0
OpenVMS VAX8.2 TS2M09.3 TS1M0
IRIX8.2 TS2M09.3 TS1M0
64-bit Enabled Solaris8.2 TS2M09.3 TS1M0
OS/28.2 TS2M0
Linux8.2 TS2M09.3 TS1M0
z/OS8.2 TS2M09.3 TS1M0
ABI+ for Intel Architecture8.2 TS2M09.3 TS1M0
HP-UX8.2 TS2M09.3 TS1M0
CMS8.2 TS2M09.3 TS1M0
HP-UX IPF9 TS M09.3 TS1M0
64-bit Enabled HP-UX8.2 TS2M09.3 TS1M0
OpenVMS Alpha8.2 TS2M09.3 TS1M0
64-bit Enabled AIX8.2 TS2M09.3 TS1M0
Tru64 UNIX8.2 TS2M09.3 TS1M0
AIX8.2 TS2M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.